/**
 * domain object for people defined in system 
 *
 * */
class Person {
    
    String name
    String surname
    String username
    String password
    Date birthDate
    Gender gender

    Wedding wedding
    Photo  photo

    static constraints = {
        name(blank:false)
        surname(blank:false)
        username(blank:false, unique:true)
        password(blank:false)
        birthDate(nullable:false)
        wedding(nullable:true)
        photo(nullable:true)
    }

    String toString(){
        "$name $surname"
    }
}
